#region Copyright (c) 2003 - 2006 Toenda Software Development
/*
 * Copyright (c) 2003 - 2006 Toenda Software Development
 */
#endregion

using System;
using System.Collections.Generic;

namespace Toenda.Rails {
	namespace DataContainer {
		/// <summary>
		/// Class SetItem. Data object for the image sets.
		/// </summary>
		[Serializable]
		public class SetItem {
			private long m_setid;
			private string m_id;
			private string m_userid;
			private long m_image;
			private string m_name;
			private string m_description;
			private int m_access;
			private DateTime m_createdate;
			private List<ImageItem> m_images;

			/// <summary>
			/// Default constructor
			/// </summary>
			public SetItem() {
				m_images = new List<ImageItem>();
			}

			/// <summary>
			/// Get or set the id
			/// </summary>
			public string ID {
				get { return m_id; }
				set { m_id = value; }
			}

			/// <summary>
			/// Get or set the id (long)
			/// </summary>
			public long SetID {
				get { return m_setid; }
				set { m_setid = value; }
			}

			/// <summary>
			/// Get or set the user id
			/// </summary>
			public string UserID {
				get { return m_userid; }
				set { m_userid = value; }
			}

			/// <summary>
			/// Get or set the thumbnail
			/// </summary>
			public long Thumbnail {
				get { return m_image; }
				set { m_image = value; }
			}

			/// <summary>
			/// Get or set the name
			/// </summary>
			public string Name {
				get { return m_name; }
				set { m_name = value; }
			}

			/// <summary>
			/// Get or set the description
			/// </summary>
			public string Description {
				get { return m_description; }
				set { m_description = value; }
			}

			/// <summary>
			/// Get or set the access rights (0 = Public)
			/// </summary>
			public int Access {
				get { return m_access; }
				set { m_access = value; }
			}

			/// <summary>
			/// Get or set the date of creation
			/// </summary>
			public DateTime CreateDate {
				get { return m_createdate; }
				set { m_createdate = value; }
			}

			/// <summary>
			/// Get or set a list of image objects
			/// </summary>
			public List<ImageItem> Images {
				get { return m_images; }
				set { m_images = value; }
			}
		}
	}
}
